package com.cskaoyan.controller;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.adminLog.LogListVO;
import com.cskaoyan.service.AdminLogService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/log")
public class AdminLogController {
    @Autowired
    AdminLogService adminLogService;

    @RequiresPermissions(value = "admin:log:list")
    @RequestMapping("list")
    public BaseRespVo list(Integer page,Integer limit,String sort,String order,String name) {
        LogListVO logListVO = adminLogService.list(page,limit,name,sort,order);
        return BaseRespVo.ok(logListVO);
    }


}
